{% block fonctionalites %}
    <div class="functionalities-accordion">
        {% for fonctionalite in fonctionalites %}
            <h3><a href="#">{{ fonctionalite }}</a></h3>
            <div id={{fonctionalite.pk}}>
                {% include "reports/fonctionalite_status.html" %}
                {% for tache in fonctionalite.tache_set.all %}
                    {% include "reports/task.html" %}
                {% endfor %}
            </div>
        {% endfor %}
    </div>
{% endblock fonctionalites %}

<script type="text/javascript" chaset=utf-8"">
    $(".functionalities-accordion").accordion({
        active: -1, collapsible: true, header: "h3", autoHeight: true, fillSpace: false
    });
</script>
 